package com.ch08e;

public class Painter {
	public Shape createCircle(final double radius) { // (4) Non-static Method
		class Circle extends Shape { // (5) Non-static local class
			public void draw() {
			System.out.println("Drawing a Circle of radius: " + radius);
			}
			}
			return new Circle(); // (6) Object of non-static local class
			}
			public static IDrawable createMap() { // (7) Static Method
			class Map implements IDrawable { // (8) Static local class
			public void draw() { System.out.println("Drawing a Map."); }
			}
			return new Map();
	}
}
